package com.zhuss.core.datasource1.dao.ext;

import com.zhuss.core.datasource1.dao.gen.VillageMapper;
import com.zhuss.core.datasource1.entity.Village;
import com.zhuss.bean.bo.core.village.SearchVillageBo;
import com.zhuss.bean.vo.core.village.ListVillageVo;
import com.zhuss.bean.vo.core.village.DetailVillageVo;

import java.util.List;

import org.apache.ibatis.annotations.*;

import com.zhuss.core.db.dao.gen.*;

/**
 * @description: 小区数据库Dao
 * @author: zhushanshuo
 * @create: Fri May 28 22:39:25 CST 2021
 **/

@Mapper
public interface VillageDao extends VillageMapper {
	
	//void batchCreate();
	Long selectMaxIncr();
	
	void create(Village record);
	
	void delete(Village record);

	List<Village> listAll();

	List<Village> listById(@Param("villageIdList") List<Long> villageIdList);
	
	List<Village> listByName(@Param("name") String name);
	
	List<ListVillageVo> list(SearchVillageBo bo);
	
	Integer countList(SearchVillageBo bo);

	DetailVillageVo detail(@Param("villageId") Long villageId);


}
